<template>
	<view class="pr">
		<image :src="$config.poster_img||''" class="w-max db" mode="widthFix"></image>
		<!-- <image :src="'/static/img/my/my_page_bg.png'" class="w-max db" mode="widthFix"></image> -->
		<view class="pa w-max h-max top0 left0 colozs">
			<u-navbar :is-back="true" backIconColor="#fff" :border-bottom="false" title="城市合伙人" titleColor="#fff"
				:is-fixed="true" :background="{background:'#fff0'}">
			</u-navbar>
			<view class="h40p"></view>
			<view class="flex-col col-center color-fff" v-if="$config.is_invitecode==1">
				<view class="fs38 fw-w ">-我的邀请码-</view>
				<view class="mt30 fs40 fw-w" style="letter-spacing:0.5em">{{$user.invite_code}}</view>
				<view class="p20 mt40 radius20 bg-fff">
					<u-image :src="data.qrcode" width="300" height="300" show-menu-by-longpress />
				</view>
				<view class="mt60 ">好友注册时输入邀请码即可</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// share_url: '',
				data: ''
			};
		},
		onLoad() {
			this.getQrcode()
			// this.share_url = this.$baseUrl + '/h5/#/pages/public/register?regcode=' + this.$user.invite_code
		},
		methods: {
			getQrcode() {
				this.$request('/master/commom/getQrcode').then(res => {
					this.data = res.data
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		// background: $zs;
	}
</style>
